#include "Thread.hpp"
#include <stdlib.h>

using namespace ThreadModlue;

int main()
{
    Thread t([](){
        while(true)
        {
            std::cout << "我是一个new线程" << '\n'; 
            sleep(1);
        }
    });

    t.Start();

    sleep(5);

    t.stop();

    sleep(5);

    t.Join();
    return 0;
}